<%-- 
    Document   : InfoSearch
    Created on : Nov 20, 2012, 11:26:31 PM
    Author     : minhtrungn
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
    <head>
    </head>
    <body onload="countCart();">
        <%@include file="/WEB-INF/headerMainPage.jsp" %>
        <div class="background-main">
            <c:set var="SearchList" value="${requestScope.SearchList}"/>
            <div align="center" style="color: red; font-weight: bold">${requestScope.searchError}</div>
            <c:if test="${not empty SearchList}">                
                <div class="block-content-wrapper">
                    <div class="block-content">
                        <div class="block-row-wrapper">
                            <ul class="block-row">
                                <c:forEach var="list" items="${SearchList}">
                                    <form action="Controller" method="GET">
                                        <li class="content">
                                            <div class="image-product-wrapper" align="center">
                                                <div class="image-product">
                                                    <img src="Pictures/xmlImg/${list.productImg}" alt="" width="100%" height="100%"/>
                                                </div>
                                            </div>
                                            <input type="hidden" id="${list.productID}_productId" name="id" value="${list.productID}"/>
                                            <div class="info-product-wrapper">
                                                <div id="${list.productID}_productName">${list.productName}</div>
                                                <div id="${list.productID}_productPrice" align="right">${list.price}</div>
                                            </div>
                                            <div class="button-action">
                                                <button type="submit" name="btnAction" value="viewdetail">Xem chi tiết</button>
                                                <button type="button" name="btnAction" value="AddCart" onclick="addCart1(${list.productID});">Thêm giỏ hàng</button>
                                            </div>
                                        </li>
                                    </form>
                                </c:forEach>
                            </ul>
                        </div>
                    </div>
                </div>
            </c:if>
        </div>
        <%@include file="/WEB-INF/footerMainPage.jsp" %>
    </body>
</html>
